import Vue from 'vue'
import VueRouter from 'vue-router'
import Q_login from '../components/q_ccfa/q_login.vue'
import H_login from '../components/h_ccfa/h_login.vue'
import H_index from '../components/h_ccfa/h_index.vue'
import H_home from '../components/h_ccfa/h_home.vue'
import H_role from '../components/h_ccfa/h_role.vue'
import H_power from  '../components/h_ccfa/h_power.vue'
import H_type from '../components/h_ccfa/h_type.vue'

Vue.use(VueRouter)

const routes = [
	{
		path: '/q_login',
		component: Q_login
	},
	{
		path:'/h_login',
		component:H_login
	},
	{
		  path: '/h_index',
		  component: H_index,
		  redirect: '/h_home',
		  children:[
			{path:'/h_home', component: H_home},
			{path:'/h_role',component:H_role},
			{path:'/h_power',component:H_power},
			{path:'/h_type',component:H_type}
		  ]
	}
]

const router = new VueRouter({
  routes
})

export default router
